package org.exhaust.barbecue.model;

import org.exhaust.barbecue.AbstractRequest;

import javax.validation.constraints.Positive;

public abstract class BasePagedRequest extends AbstractRequest {
    @Positive(message = "页码必须大于等于1")
    protected int pageNo;
    @Positive(message = "每页条数必须大于等于1")
    protected int pageSize;

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
